<?php
	require_once('paths.inc');
	require_once(INCLUDE_PATH.'constants.inc');
	require_once('page.inc');
	require_once(DB_PATH.'db.inc');
	
	require_once('security.inc');
	require_once('utils.inc');	
	require_once('time.inc');
			
	session_start();
		
	check_permissions(CT_PERM_FIRME);
	
	html_header("LANG_Cauta_Contacte", null, "cauta_contacte");
    
	$id_client = $_SESSION['user_logat']->id_client;

	$db = db_connect();
	
	$linkuri = array(LANG_Home => "home.php", LANG_Firme => "show_firms.php", LANG_Cauta_Contacte => "");
	titlu_pagina($linkuri);	
	
    output_error_msg();
    output_notice_msg();
    output_extra_text(LANG_EXTRA_CAUTA_CONTACTE);
    
	render_search_contacts($id_client);
    
	echo "<div align=\"left\" id=\"raspunss\"></div>";
		
	html_footer(); 
?>